<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>页面按钮控制</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="<%=path%>/javaScript/menu.js"></script>
     <script type="text/javascript">
  		mpmenu0=new mMenu('','doAdd()','script','<%=path %>/images/add.gif','62','24','0','100','2');
  		mpmenu1=new mMenu('','doUpdate()','script','<%=path %>/images/rework.gif','62','24','0','100','2');
  		mpmenu2=new mMenu('','doDelete()','script','<%=path %>/images/delete.gif','62','24','0','100','2');
  	    mpmenu3=new mMenu('','doSearch()','script','<%=path %>/images/search.gif','62','24','0','100','2');
    	mpmenu5=new mMenu('','#','self','<%=path%>/images/view.gif','62','24','0','120','3');
  		mpmenu5.addItem(new mMenuItem('显示字段','','script',false,'选择列',null,'','300','','',400,500));
  		mpmenu5.addItem(new mMenuItem('排序字段','','script',false,'',null,'','','','',400,200));
  		mpmenu5.addItem(new mMenuItem('恢复初始','','script',false,'',null,'','','','',400,200));
     </script>
      <script type="text/javascript">
    //checkbox select all
function setAll(type,k){

	var a=document.getElementsByName("selectall");

    for(var i = 0; i<a.length; i++){
		a[i].checked=k;
	}
	
	var checkBoxGroup = document.getElementsByName(type);
	for(var i = 0;i < checkBoxGroup.length;i++){
		checkBoxGroup[i].checked = k;
	}
}
//checkbox select no all
function setNoAll(type){	    
	var flag = true;	
	var checkBoxGroup = document.getElementsByName(type);
	for(var i = 0;i < checkBoxGroup.length;i++){
		if(checkBoxGroup[i].checked == false){	
			flag = false;			
		}
	}	
	var a=document.getElementsByName("selectall");	
	for(var j = 0; j<a.length; j++){
		if(!flag){
			a[j].checked = false;
		}else{
			a[j].checked = true;
		}
	}
}
//得到选中的ID号，列表中所有被选中的CHECKBOX,数组
	function getSelectedIds(){
		var id=new Array();
		var ids=document.getElementsByName("ids");
		var index=0;
		if (ids){	
			for(i=0;i<ids.length;i++){
				if(ids[i].checked){	
						id[index]=ids[i].value;
						index++;										
				}
			}
		}
		return id;
	}
     </script>
  </head>
  
  <body>
    
  </body>
</html>
